<!-- Start of first page -->
<div data-role="page">

    <script>
        // outside ready function so that buttons still have a var to attach function calls to like slider.next()
        var slider2;

        $(document).one('pageshow',function(){

            // slider
            slider2 = new Swipe(document.getElementById('slider'), {
                callback: function(e, pos) {

                    var i = dots.length;
                    while (i--) {
                        dots[i].className = ' ';
                    }
                    dots[pos].className = 'on';

                }
            }),
                dots = document.getElementById('position').getElementsByTagName('em');
        });

    </script>

    <div data-role="header" data-theme="a">

        <?php echo CHtml::link("Back",array("site/dashboard"),array("data-icon"=>"home"))?>

        <h3><?php echo $model->business_name; ?></h3>

        <a href="#popupQR" data-rel="popup" data-role="button" data-inline="false">QR Co</a>
        <div data-role="popup" id="popupQR" data-theme="none" data-corners="false">
            <a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete" data-iconpos="notext" class="ui-popup-btn-close">Close</a>
            <?php  echo CHtml::image(Yii::app()->controller->createUrl('business/showqr', array('id'=> $model->business_id))); ?>
        </div>
    </div>
    <!-- /header -->

    <div data-role="content" data-theme="a" id="home">

           <?php echo $this->renderPartial('_form', array('model'=>$model)); ?>

    </div>
    <!-- /content -->

    <?php $this->renderPartial("//site/footer")?>
    <!-- /footer -->

</div>
<!-- /page -->